package com.lemon.bean;


import java.io.File;

public class NodeBean {
    public static MyTreeItem getTreeView(){
        MyTreeItem root = new MyTreeItem();//隐藏掉
        //添加盘符节点
        File[] systemRootDisk = File.listRoots();
        for (File file : systemRootDisk){
            root.getChildren().add(new MyTreeItem(file));
        }
        return root;
    }


}
